package com.pinyoumei.app.bean;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator on 2021-06-28.
 * --------- 日期 ------- 维护人 ------------ 变更内容 --------
 * 2021-06-28        Administrator             新增Person类
 * 2021-06-28        Administrator             增加sex属性
 */
public class ChooseCouponBean {

    /**
     * code : 1
     * errors : {}
     * msg : 数据加载成功
     * result : {"usable_coupon_list":[{"coupon_amount":5,"deduct_amount":3.16,"coupon_title":"境外商城优惠券","use_condition":"境外商城购买商品时抵扣使用","expire_time":"2021-10-15 10:12:56","order_price":100,"id":"0a1d492e589c49088d2d136deda26ca2"}],"disable_coupon_list":[{"coupon_amount":20,"deduct_amount":12.66,"coupon_title":"境外商城优惠券","disable_reason":"需订单金额大于300.0元方可使用","use_condition":"境外商城购买商品时抵扣使用","expire_time":"2021-06-25 16:00:00","order_price":300,"id":"2"}]}
     */

    private int code;
    private ErrorsBean errors;
    private String msg;
    private ResultBean result;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public ErrorsBean getErrors() {
        return errors;
    }

    public void setErrors(ErrorsBean errors) {
        this.errors = errors;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ErrorsBean {
    }

    public static class ResultBean {
        private List<UsableCouponListBean> usable_coupon_list;
        private List<UsableCouponListBean> disable_coupon_list;

        public List<UsableCouponListBean> getUsable_coupon_list() {
            return usable_coupon_list;
        }

        public void setUsable_coupon_list(List<UsableCouponListBean> usable_coupon_list) {
            this.usable_coupon_list = usable_coupon_list;
        }

        public List<UsableCouponListBean> getDisable_coupon_list() {
            return disable_coupon_list;
        }

        public void setDisable_coupon_list(List<UsableCouponListBean> disable_coupon_list) {
            this.disable_coupon_list = disable_coupon_list;
        }

        public static class UsableCouponListBean {
            /**
             * coupon_amount : 5
             * deduct_amount : 3.16
             * coupon_title : 境外商城优惠券
             * use_condition : 境外商城购买商品时抵扣使用
             * expire_time : 2021-10-15 10:12:56
             * order_price : 100
             * id : 0a1d492e589c49088d2d136deda26ca2
             */

            private BigDecimal coupon_amount;
            private BigDecimal deduct_amount;
            private String deduct_amount_unit_name;
            private String coupon_title;
            private String use_condition;
            private String expire_time;
            private BigDecimal order_price;
            private String id;
            private String disable_reason;
            private String type;
            private boolean click = false;


            public String getDeduct_amount_unit_name() {
                return deduct_amount_unit_name;
            }

            public void setDeduct_amount_unit_name(String deduct_amount_unit_name) {
                this.deduct_amount_unit_name = deduct_amount_unit_name;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public boolean getClick() {
                return click;
            }

            public void setClick(boolean click) {
                this.click = click;
            }

            public String getDisable_reason() {
                return disable_reason;
            }

            public void setDisable_reason(String disable_reason) {
                this.disable_reason = disable_reason;
            }

            public BigDecimal getCoupon_amount() {
                return coupon_amount;
            }

            public void setCoupon_amount(BigDecimal coupon_amount) {
                this.coupon_amount = coupon_amount;
            }

            public BigDecimal getDeduct_amount() {
                return deduct_amount;
            }

            public void setDeduct_amount(BigDecimal deduct_amount) {
                this.deduct_amount = deduct_amount;
            }

            public String getCoupon_title() {
                return coupon_title;
            }

            public void setCoupon_title(String coupon_title) {
                this.coupon_title = coupon_title;
            }

            public String getUse_condition() {
                return use_condition;
            }

            public void setUse_condition(String use_condition) {
                this.use_condition = use_condition;
            }

            public String getExpire_time() {
                return expire_time;
            }

            public void setExpire_time(String expire_time) {
                this.expire_time = expire_time;
            }

            public BigDecimal getOrder_price() {
                return order_price;
            }

            public void setOrder_price(BigDecimal order_price) {
                this.order_price = order_price;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }
        }


    }
}
